	format	MS COFF
	extrn	___bb_blitz_blitz
	extrn	___bb_cal3d_cal3d
	extrn	___bb_minib3d_minib3d
	extrn	_bbArrayNew1D
	extrn	_bbArraySlice
	extrn	_bbEmptyArray
	extrn	_bbEmptyString
	extrn	_bbNullObject
	extrn	_bbObjectClass
	extrn	_bbObjectCompare
	extrn	_bbObjectCtor
	extrn	_bbObjectDowncast
	extrn	_bbObjectDtor
	extrn	_bbObjectFree
	extrn	_bbObjectNew
	extrn	_bbObjectRegisterType
	extrn	_bbObjectReserved
	extrn	_bbObjectSendMessage
	extrn	_bbObjectToString
	extrn	_bbStringClass
	extrn	_bbStringConcat
	extrn	_bbStringFromInt
	extrn	_brl_blitz_DebugLog
	extrn	_brl_filesystem_StripDir
	extrn	_brl_filesystem_StripExt
	extrn	_brl_linkedlist_ClearList
	extrn	_brl_linkedlist_TList
	extrn	_c3d_cal3d_CalCoreModel
	extrn	_sidesign_minib3d_FreeBrush
	extrn	_sidesign_minib3d_FreeEntity
	extrn	_sidesign_minib3d_FreeTexture
	extrn	_sidesign_minib3d_LoadTexture
	extrn	_sidesign_minib3d_PaintEntity
	extrn	_sidesign_minib3d_TBrush
	extrn	_sidesign_minib3d_TMesh
	public	___bb_calb3d_calb3d
	public	__c3d_calb3d_CB3DAnimation_New
	public	__c3d_calb3d_CB3DMAnimation_New
	public	__c3d_calb3d_CB3DMaterial_AddMap
	public	__c3d_calb3d_CB3DMaterial_New
	public	__c3d_calb3d_CB3DMesh_Build
	public	__c3d_calb3d_CB3DMesh_New
	public	__c3d_calb3d_CB3DMesh_PaintMaterial
	public	__c3d_calb3d_CB3DMesh_Update
	public	__c3d_calb3d_CB3DModel_AddAnim
	public	__c3d_calb3d_CB3DModel_AddMaterial
	public	__c3d_calb3d_CB3DModel_AddMesh
	public	__c3d_calb3d_CB3DModel_AddMorphAnim
	public	__c3d_calb3d_CB3DModel_Animate
	public	__c3d_calb3d_CB3DModel_AnimateMorph
	public	__c3d_calb3d_CB3DModel_Build
	public	__c3d_calb3d_CB3DModel_Destroy
	public	__c3d_calb3d_CB3DModel_GetMaterial
	public	__c3d_calb3d_CB3DModel_New
	public	__c3d_calb3d_CB3DModel_SetSkeleton
	public	__c3d_calb3d_CB3DModel_StopAnimation
	public	__c3d_calb3d_CB3DModel_StopMorphAnimation
	public	__c3d_calb3d_CB3DModel_Update
	public	__c3d_calb3d_CB3DTexture_New
	public	_c3d_calb3d_CB3DAnimation
	public	_c3d_calb3d_CB3DMAnimation
	public	_c3d_calb3d_CB3DMaterial
	public	_c3d_calb3d_CB3DMesh
	public	_c3d_calb3d_CB3DModel
	public	_c3d_calb3d_CB3DTexture
	section	"code" code
___bb_calb3d_calb3d:
	push	ebp
	mov	ebp,esp
	cmp	dword [_266],0
	je	_267
	mov	eax,0
	mov	esp,ebp
	pop	ebp
	ret
_267:
	mov	dword [_266],1
	call	___bb_blitz_blitz
	call	___bb_cal3d_cal3d
	call	___bb_minib3d_minib3d
	push	_c3d_calb3d_CB3DModel
	call	_bbObjectRegisterType
	add	esp,4
	push	_c3d_calb3d_CB3DMesh
	call	_bbObjectRegisterType
	add	esp,4
	push	_c3d_calb3d_CB3DMaterial
	call	_bbObjectRegisterType
	add	esp,4
	push	_c3d_calb3d_CB3DTexture
	call	_bbObjectRegisterType
	add	esp,4
	push	_c3d_calb3d_CB3DAnimation
	call	_bbObjectRegisterType
	add	esp,4
	push	_c3d_calb3d_CB3DMAnimation
	call	_bbObjectRegisterType
	add	esp,4
	mov	eax,0
	jmp	_171
_171:
	mov	esp,ebp
	pop	ebp
	ret
__c3d_calb3d_CB3DModel_New:
	push	ebp
	mov	ebp,esp
	push	ebx
	mov	ebx,dword [ebp+8]
	push	ebx
	call	_bbObjectCtor
	add	esp,4
	mov	dword [ebx],_c3d_calb3d_CB3DModel
	mov	dword [ebx+8],_bbNullObject
	mov	dword [ebx+12],_bbNullObject
	mov	dword [ebx+16],_bbNullObject
	mov	dword [ebx+20],_bbNullObject
	mov	dword [ebx+24],_bbNullObject
	mov	dword [ebx+28],_bbNullObject
	mov	dword [ebx+32],_bbNullObject
	mov	dword [ebx+36],_bbNullObject
	mov	dword [ebx+40],_bbNullObject
	mov	byte [ebx+44],0
	mov	byte [ebx+45],0
	mov	byte [ebx+46],0
	mov	byte [ebx+47],0
	mov	dword [ebx+48],_bbEmptyString
	mov	dword [ebx+52],_bbEmptyString
	push	_bbNullObject
	call	dword [_sidesign_minib3d_TMesh+400]
	add	esp,4
	mov	dword [ebx+20],eax
	push	_brl_linkedlist_TList
	call	_bbObjectNew
	add	esp,4
	mov	dword [ebx+24],eax
	push	_brl_linkedlist_TList
	call	_bbObjectNew
	add	esp,4
	mov	dword [ebx+32],eax
	push	_brl_linkedlist_TList
	call	_bbObjectNew
	add	esp,4
	mov	dword [ebx+36],eax
	push	_brl_linkedlist_TList
	call	_bbObjectNew
	add	esp,4
	mov	dword [ebx+28],eax
	push	_c3d_cal3d_CalCoreModel
	call	_bbObjectNew
	add	esp,4
	mov	dword [ebx+12],eax
	mov	eax,0
	jmp	_174
_174:
	pop	ebx
	mov	esp,ebp
	pop	ebp
	ret
__c3d_calb3d_CB3DModel_SetSkeleton:
	push	ebp
	mov	ebp,esp
	mov	edx,dword [ebp+8]
	mov	eax,dword [ebp+12]
	mov	dword [edx+8],eax
	mov	eax,dword [edx+12]
	push	dword [edx+8]
	push	eax
	mov	eax,dword [eax]
	call	dword [eax+220]
	add	esp,8
	mov	eax,0
	jmp	_178
_178:
	mov	esp,ebp
	pop	ebp
	ret
__c3d_calb3d_CB3DModel_Animate:
	push	ebp
	mov	ebp,esp
	push	ebx
	mov	eax,dword [ebp+8]
	mov	ebx,dword [ebp+12]
	mov	eax,dword [eax+16]
	push	eax
	mov	eax,dword [eax]
	call	dword [eax+68]
	add	esp,4
	push	0
	push	1065353216
	push	ebx
	push	eax
	mov	eax,dword [eax]
	call	dword [eax+64]
	add	esp,16
	mov	eax,0
	jmp	_182
_182:
	pop	ebx
	mov	esp,ebp
	pop	ebp
	ret
__c3d_calb3d_CB3DModel_StopAnimation:
	push	ebp
	mov	ebp,esp
	push	ebx
	mov	eax,dword [ebp+8]
	mov	ebx,dword [ebp+12]
	mov	eax,dword [eax+16]
	push	eax
	mov	eax,dword [eax]
	call	dword [eax+68]
	add	esp,4
	push	0
	push	ebx
	push	eax
	mov	eax,dword [eax]
	call	dword [eax+68]
	add	esp,12
	mov	eax,0
	jmp	_186
_186:
	pop	ebx
	mov	esp,ebp
	pop	ebp
	ret
__c3d_calb3d_CB3DModel_StopMorphAnimation:
	push	ebp
	mov	ebp,esp
	push	ebx
	mov	eax,dword [ebp+8]
	mov	ebx,dword [ebp+12]
	mov	eax,dword [eax+16]
	push	eax
	mov	eax,dword [eax]
	call	dword [eax+80]
	add	esp,4
	push	0
	push	ebx
	push	eax
	mov	eax,dword [eax]
	call	dword [eax+56]
	add	esp,12
	mov	eax,0
	jmp	_190
_190:
	pop	ebx
	mov	esp,ebp
	pop	ebp
	ret
__c3d_calb3d_CB3DModel_AnimateMorph:
	push	ebp
	mov	ebp,esp
	push	ebx
	mov	eax,dword [ebp+8]
	mov	ebx,dword [ebp+12]
	mov	eax,dword [eax+16]
	push	eax
	mov	eax,dword [eax]
	call	dword [eax+80]
	add	esp,4
	push	0
	push	1065353216
	push	ebx
	push	eax
	mov	eax,dword [eax]
	call	dword [eax+52]
	add	esp,16
	mov	eax,0
	jmp	_194
_194:
	pop	ebx
	mov	esp,ebp
	pop	ebp
	ret
__c3d_calb3d_CB3DModel_AddAnim:
	push	ebp
	mov	ebp,esp
	push	ebx
	push	esi
	push	edi
	mov	esi,dword [ebp+8]
	mov	edi,dword [ebp+12]
	cmp	edi,_bbNullObject
	je	_277
	push	_c3d_calb3d_CB3DAnimation
	call	_bbObjectNew
	add	esp,4
	mov	ebx,eax
	mov	eax,dword [esi+12]
	push	edi
	push	eax
	mov	eax,dword [eax]
	call	dword [eax+60]
	add	esp,8
	mov	dword [ebx+20],eax
	push	dword [ebx+20]
	call	_bbStringFromInt
	add	esp,4
	push	eax
	push	_5
	call	_bbStringConcat
	add	esp,8
	push	eax
	call	_brl_blitz_DebugLog
	add	esp,4
	mov	dword [ebx+28],esi
	mov	eax,dword [esi+32]
	push	ebx
	push	eax
	mov	eax,dword [eax]
	call	dword [eax+68]
	add	esp,8
	mov	eax,ebx
	jmp	_198
_277:
	mov	eax,_bbNullObject
	jmp	_198
_198:
	pop	edi
	pop	esi
	pop	ebx
	mov	esp,ebp
	pop	ebp
	ret
__c3d_calb3d_CB3DModel_AddMorphAnim:
	push	ebp
	mov	ebp,esp
	push	ebx
	push	esi
	push	edi
	mov	esi,dword [ebp+8]
	mov	edi,dword [ebp+12]
	cmp	edi,_bbNullObject
	je	_281
	push	_c3d_calb3d_CB3DMAnimation
	call	_bbObjectNew
	add	esp,4
	mov	ebx,eax
	mov	eax,dword [esi+12]
	push	edi
	push	eax
	mov	eax,dword [eax]
	call	dword [eax+100]
	add	esp,8
	mov	dword [ebx+20],eax
	push	dword [ebx+20]
	call	_bbStringFromInt
	add	esp,4
	push	eax
	push	_6
	call	_bbStringConcat
	add	esp,8
	push	eax
	call	_brl_blitz_DebugLog
	add	esp,4
	mov	dword [ebx+28],esi
	mov	eax,dword [esi+36]
	push	ebx
	push	eax
	mov	eax,dword [eax]
	call	dword [eax+68]
	add	esp,8
	mov	eax,ebx
	jmp	_202
_281:
	mov	eax,_bbNullObject
	jmp	_202
_202:
	pop	edi
	pop	esi
	pop	ebx
	mov	esp,ebp
	pop	ebp
	ret
__c3d_calb3d_CB3DModel_AddMaterial:
	push	ebp
	mov	ebp,esp
	sub	esp,8
	push	ebx
	push	esi
	push	edi
	mov	edi,dword [ebp+16]
	mov	dword [ebp-8],_bbNullObject
	mov	eax,dword [ebp+8]
	mov	esi,dword [eax+28]
	mov	eax,esi
	push	eax
	mov	eax,dword [eax]
	call	dword [eax+140]
	add	esp,4
	mov	ebx,eax
	jmp	_7
_9:
	mov	eax,ebx
	push	_c3d_calb3d_CB3DMaterial
	push	eax
	mov	eax,dword [eax]
	call	dword [eax+52]
	add	esp,4
	push	eax
	call	_bbObjectDowncast
	add	esp,8
	cmp	eax,_bbNullObject
	je	_7
	cmp	dword [eax+24],edi
	jne	_292
	mov	dword [ebp-8],eax
	jmp	_8
_292:
_7:
	mov	eax,ebx
	push	eax
	mov	eax,dword [eax]
	call	dword [eax+48]
	add	esp,4
	cmp	eax,0
	jne	_9
_8:
	cmp	dword [ebp-8],_bbNullObject
	jne	_294
	push	_c3d_calb3d_CB3DMaterial
	call	_bbObjectNew
	add	esp,4
	mov	dword [ebp-8],eax
	mov	edx,dword [ebp+12]
	mov	eax,dword [ebp-8]
	mov	dword [eax+12],edx
	mov	eax,dword [ebp-8]
	mov	dword [eax+24],edi
	mov	eax,dword [ebp+8]
	mov	eax,dword [eax+12]
	push	dword [ebp+12]
	push	eax
	mov	eax,dword [eax]
	call	dword [eax+120]
	add	esp,8
_294:
	push	edi
	call	_bbStringFromInt
	add	esp,4
	push	eax
	push	_10
	call	_bbStringConcat
	add	esp,8
	push	eax
	call	_brl_blitz_DebugLog
	add	esp,4
	mov	eax,dword [ebp+12]
	push	eax
	mov	eax,dword [eax]
	call	dword [eax+56]
	add	esp,4
	push	eax
	call	_bbStringFromInt
	add	esp,4
	push	eax
	push	_11
	call	_bbStringConcat
	add	esp,8
	push	eax
	call	_brl_blitz_DebugLog
	add	esp,4
	mov	edi,0
	mov	eax,dword [ebp+12]
	push	eax
	mov	eax,dword [eax]
	call	dword [eax+56]
	add	esp,4
	sub	eax,1
	mov	dword [ebp-4],eax
	jmp	_299
_14:
	push	_c3d_calb3d_CB3DTexture
	call	_bbObjectNew
	add	esp,4
	mov	esi,eax
	mov	dword [esi+20],edi
	mov	eax,dword [ebp+12]
	push	edi
	push	eax
	mov	eax,dword [eax]
	call	dword [eax+60]
	add	esp,8
	push	eax
	call	_brl_filesystem_StripExt
	add	esp,4
	push	eax
	call	_brl_filesystem_StripDir
	add	esp,4
	mov	ebx,eax
	mov	eax,dword [ebp+12]
	push	edi
	push	eax
	mov	eax,dword [eax]
	call	dword [eax+60]
	add	esp,8
	push	eax
	push	_15
	call	_bbStringConcat
	add	esp,8
	push	eax
	call	_brl_blitz_DebugLog
	add	esp,4
	mov	dword [esi+12],ebx
	mov	eax,dword [ebp+12]
	push	1
	push	edi
	push	eax
	mov	eax,dword [eax]
	call	dword [eax+60]
	add	esp,8
	push	eax
	push	dword [ebp+20]
	call	_bbStringConcat
	add	esp,8
	push	eax
	call	_sidesign_minib3d_LoadTexture
	add	esp,8
	mov	dword [esi+8],eax
	cmp	dword [esi+8],_bbNullObject
	jne	_307
	push	_16
	call	_brl_blitz_DebugLog
	add	esp,4
_307:
	mov	eax,dword [ebp-8]
	push	edi
	push	esi
	push	eax
	mov	eax,dword [eax]
	call	dword [eax+48]
	add	esp,12
_12:
	add	edi,1
_299:
	cmp	edi,dword [ebp-4]
	jle	_14
_13:
	mov	eax,dword [ebp+8]
	mov	eax,dword [eax+28]
	push	dword [ebp-8]
	push	eax
	mov	eax,dword [eax]
	call	dword [eax+68]
	add	esp,8
	mov	eax,dword [ebp-8]
	mov	byte [eax+28],1
	mov	eax,dword [ebp-8]
	jmp	_208
_208:
	pop	edi
	pop	esi
	pop	ebx
	mov	esp,ebp
	pop	ebp
	ret
__c3d_calb3d_CB3DModel_GetMaterial:
	push	ebp
	mov	ebp,esp
	push	ebx
	push	esi
	push	edi
	mov	eax,dword [ebp+8]
	mov	edi,dword [ebp+12]
	mov	esi,dword [eax+28]
	mov	eax,esi
	push	eax
	mov	eax,dword [eax]
	call	dword [eax+140]
	add	esp,4
	mov	ebx,eax
	jmp	_17
_19:
	mov	eax,ebx
	push	_c3d_calb3d_CB3DMaterial
	push	eax
	mov	eax,dword [eax]
	call	dword [eax+52]
	add	esp,4
	push	eax
	call	_bbObjectDowncast
	add	esp,8
	cmp	eax,_bbNullObject
	je	_17
	cmp	dword [eax+24],edi
	jne	_316
	jmp	_212
_316:
_17:
	mov	eax,ebx
	push	eax
	mov	eax,dword [eax]
	call	dword [eax+48]
	add	esp,4
	cmp	eax,0
	jne	_19
_18:
	mov	eax,_bbNullObject
	jmp	_212
_212:
	pop	edi
	pop	esi
	pop	ebx
	mov	esp,ebp
	pop	ebp
	ret
__c3d_calb3d_CB3DModel_AddMesh:
	push	ebp
	mov	ebp,esp
	sub	esp,16
	push	ebx
	push	esi
	push	edi
	mov	ebx,dword [ebp+12]
	mov	byte [ebp-4],0
	cmp	ebx,_bbNullObject
	je	_317
	push	_c3d_calb3d_CB3DMesh
	call	_bbObjectNew
	add	esp,4
	mov	dword [ebp-12],eax
	mov	eax,dword [ebp+8]
	mov	eax,dword [eax+12]
	push	ebx
	push	eax
	mov	eax,dword [eax]
	call	dword [eax+168]
	add	esp,8
	mov	edx,dword [ebp-12]
	mov	dword [edx+8],eax
	mov	eax,dword [ebp-12]
	push	dword [eax+8]
	call	_bbStringFromInt
	add	esp,4
	push	eax
	push	_20
	call	_bbStringConcat
	add	esp,8
	push	eax
	call	_brl_blitz_DebugLog
	add	esp,4
	mov	eax,dword [ebp-12]
	mov	dword [eax+16],ebx
	mov	eax,dword [ebp-12]
	cmp	dword [eax+12],_bbNullObject
	je	_320
	mov	eax,dword [ebp-12]
	push	dword [eax+12]
	call	_sidesign_minib3d_FreeEntity
	add	esp,4
_320:
	mov	eax,dword [ebp+8]
	push	dword [eax+20]
	call	dword [_sidesign_minib3d_TMesh+400]
	add	esp,4
	mov	edx,dword [ebp-12]
	mov	dword [edx+12],eax
	mov	edx,dword [ebp+8]
	mov	eax,dword [ebp-12]
	mov	dword [eax+36],edx
	mov	dword [ebp-8],0
	mov	eax,dword [ebp-12]
	mov	eax,dword [eax+16]
	push	eax
	mov	eax,dword [eax]
	call	dword [eax+56]
	add	esp,4
	sub	eax,1
	mov	dword [ebp-16],eax
	jmp	_323
_23:
	mov	eax,dword [ebp-12]
	mov	eax,dword [eax+16]
	push	dword [ebp-8]
	push	eax
	mov	eax,dword [eax]
	call	dword [eax+52]
	add	esp,8
	cmp	eax,_bbNullObject
	je	_327
	push	eax
	mov	eax,dword [eax]
	call	dword [eax+48]
	add	esp,4
	mov	edi,eax
	mov	byte [ebp-4],0
	mov	eax,dword [ebp+8]
	mov	esi,dword [eax+28]
	mov	eax,esi
	push	eax
	mov	eax,dword [eax]
	call	dword [eax+140]
	add	esp,4
	mov	ebx,eax
	jmp	_24
_26:
	mov	eax,ebx
	push	_c3d_calb3d_CB3DMaterial
	push	eax
	mov	eax,dword [eax]
	call	dword [eax+52]
	add	esp,4
	push	eax
	call	_bbObjectDowncast
	add	esp,8
	cmp	eax,_bbNullObject
	je	_24
	cmp	dword [eax+24],edi
	jne	_337
	mov	byte [ebp-4],1
	jmp	_25
_337:
_24:
	mov	eax,ebx
	push	eax
	mov	eax,dword [eax]
	call	dword [eax+48]
	add	esp,4
	cmp	eax,0
	jne	_26
_25:
	movzx	eax,byte [ebp-4]
	mov	eax,eax
	cmp	eax,0
	jne	_338
	push	_c3d_calb3d_CB3DMaterial
	call	_bbObjectNew
	add	esp,4
	mov	dword [eax+24],edi
	mov	edx,dword [ebp+8]
	mov	edx,dword [edx+28]
	push	eax
	push	edx
	mov	eax,dword [edx]
	call	dword [eax+68]
	add	esp,8
_338:
_327:
_21:
	add	dword [ebp-8],1
_323:
	mov	eax,dword [ebp-16]
	cmp	dword [ebp-8],eax
	jle	_23
_22:
	mov	eax,dword [ebp+8]
	mov	eax,dword [eax+24]
	push	dword [ebp-12]
	push	eax
	mov	eax,dword [eax]
	call	dword [eax+68]
	add	esp,8
	mov	eax,dword [ebp-12]
	jmp	_216
_317:
	mov	eax,_bbNullObject
	jmp	_216
_216:
	pop	edi
	pop	esi
	pop	ebx
	mov	esp,ebp
	pop	ebp
	ret
__c3d_calb3d_CB3DModel_Build:
	push	ebp
	mov	ebp,esp
	sub	esp,24
	push	ebx
	push	esi
	push	edi
	mov	eax,dword [ebp+8]
	mov	eax,dword [eax+12]
	push	eax
	mov	eax,dword [eax]
	call	dword [eax+208]
	add	esp,4
	cmp	eax,_bbNullObject
	jne	_343
	push	_27
	call	_brl_blitz_DebugLog
	add	esp,4
	mov	eax,0
	jmp	_219
_343:
	mov	eax,dword [ebp+8]
	mov	eax,dword [eax+12]
	push	eax
	mov	eax,dword [eax]
	call	dword [eax+208]
	add	esp,4
	mov	edx,dword [ebp+8]
	push	dword [edx+12]
	push	eax
	mov	eax,dword [eax]
	call	dword [eax+80]
	add	esp,8
	mov	eax,dword [ebp+8]
	mov	ebx,dword [eax+28]
	mov	eax,ebx
	push	eax
	mov	eax,dword [eax]
	call	dword [eax+140]
	add	esp,4
	mov	edi,eax
	jmp	_28
_30:
	mov	eax,edi
	push	_c3d_calb3d_CB3DMaterial
	push	eax
	mov	eax,dword [eax]
	call	dword [eax+52]
	add	esp,4
	push	eax
	call	_bbObjectDowncast
	add	esp,8
	mov	esi,eax
	cmp	esi,_bbNullObject
	je	_28
	mov	eax,dword [ebp+8]
	mov	eax,dword [eax+12]
	push	dword [esi+24]
	push	eax
	mov	eax,dword [eax]
	call	dword [eax+124]
	add	esp,8
	mov	eax,dword [ebp+8]
	mov	eax,dword [eax+12]
	push	dword [esi+24]
	push	0
	push	dword [esi+24]
	push	eax
	mov	eax,dword [eax]
	call	dword [eax+160]
	add	esp,16
_28:
	mov	eax,edi
	push	eax
	mov	eax,dword [eax]
	call	dword [eax+48]
	add	esp,4
	cmp	eax,0
	jne	_30
_29:
	mov	eax,dword [ebp+8]
	mov	eax,dword [eax+12]
	push	eax
	mov	eax,dword [eax]
	call	dword [eax+204]
	add	esp,4
	mov	edx,dword [ebp+8]
	mov	dword [edx+16],eax
	mov	eax,dword [ebp+8]
	mov	esi,dword [eax+24]
	push	esi
	mov	eax,dword [esi]
	call	dword [eax+140]
	add	esp,4
	mov	ebx,eax
	jmp	_31
_33:
	push	_c3d_calb3d_CB3DMesh
	push	ebx
	mov	eax,dword [ebx]
	call	dword [eax+52]
	add	esp,4
	push	eax
	call	_bbObjectDowncast
	add	esp,8
	mov	dword [ebp-4],eax
	cmp	dword [ebp-4],_bbNullObject
	je	_31
	mov	eax,dword [ebp+8]
	mov	edx,dword [eax+16]
	mov	eax,dword [ebp-4]
	push	dword [eax+8]
	push	edx
	mov	eax,dword [edx]
	call	dword [eax+52]
	add	esp,8
_31:
	push	ebx
	mov	eax,dword [ebx]
	call	dword [eax+48]
	add	esp,4
	cmp	eax,0
	jne	_33
_32:
	mov	eax,dword [ebp+8]
	cmp	dword [eax+16],_bbNullObject
	je	_362
	push	_34
	call	_brl_blitz_DebugLog
	add	esp,4
_362:
	mov	eax,dword [ebp+8]
	movzx	eax,byte [eax+47]
	mov	eax,eax
	cmp	eax,1
	jne	_363
_363:
	mov	eax,dword [ebp+8]
	mov	eax,dword [eax+16]
	push	eax
	mov	eax,dword [eax]
	call	dword [eax+88]
	add	esp,4
	mov	edx,dword [ebp+8]
	mov	dword [edx+40],eax
	mov	eax,dword [ebp+8]
	mov	eax,dword [eax+40]
	push	eax
	mov	eax,dword [eax]
	call	dword [eax+56]
	add	esp,4
	mov	eax,dword [ebp+8]
	mov	eax,dword [eax+40]
	push	eax
	mov	eax,dword [eax]
	call	dword [eax+88]
	add	esp,4
	mov	ebx,eax
	push	ebx
	call	_bbStringFromInt
	add	esp,4
	push	eax
	push	_35
	call	_bbStringConcat
	add	esp,8
	push	eax
	call	_brl_blitz_DebugLog
	add	esp,4
	mov	dword [ebp-12],0
	mov	dword [ebp-24],ebx
	jmp	_369
_38:
	mov	eax,dword [ebp+8]
	mov	eax,dword [eax+24]
	mov	dword [ebp-16],eax
	mov	eax,dword [ebp-16]
	push	eax
	mov	eax,dword [eax]
	call	dword [eax+140]
	add	esp,4
	mov	dword [ebp-20],eax
	jmp	_39
_41:
	mov	eax,dword [ebp-20]
	push	_c3d_calb3d_CB3DMesh
	push	eax
	mov	eax,dword [eax]
	call	dword [eax+52]
	add	esp,4
	push	eax
	call	_bbObjectDowncast
	add	esp,8
	mov	dword [ebp-4],eax
	cmp	dword [ebp-4],_bbNullObject
	je	_39
	mov	edx,dword [ebp-4]
	mov	eax,dword [ebp-12]
	cmp	dword [edx+8],eax
	jne	_376
	push	dword [ebp-12]
	call	_bbStringFromInt
	add	esp,4
	push	eax
	push	_42
	call	_bbStringConcat
	add	esp,8
	push	eax
	call	_brl_blitz_DebugLog
	add	esp,4
	mov	eax,dword [ebp+8]
	mov	eax,dword [eax+40]
	push	dword [ebp-12]
	push	eax
	mov	eax,dword [eax]
	call	dword [eax+104]
	add	esp,8
	mov	ebx,eax
	push	ebx
	call	_bbStringFromInt
	add	esp,4
	push	eax
	push	_43
	call	_bbStringConcat
	add	esp,8
	push	eax
	call	_brl_blitz_DebugLog
	add	esp,4
	mov	edi,0
	sub	ebx,1
	mov	dword [ebp-8],ebx
	jmp	_380
_46:
	mov	eax,dword [ebp+8]
	mov	edx,dword [eax+40]
	push	edi
	mov	eax,dword [ebp-4]
	push	dword [eax+8]
	push	edx
	mov	eax,dword [edx]
	call	dword [eax+136]
	add	esp,12
	mov	eax,dword [ebp+8]
	mov	eax,dword [eax+40]
	push	eax
	mov	eax,dword [eax]
	call	dword [eax+112]
	add	esp,4
	mov	esi,eax
	mov	eax,dword [ebp+8]
	mov	eax,dword [eax+40]
	push	eax
	mov	eax,dword [eax]
	call	dword [eax+72]
	add	esp,4
	mov	ebx,eax
	push	ebx
	call	_bbStringFromInt
	add	esp,4
	push	eax
	push	_48
	push	esi
	call	_bbStringFromInt
	add	esp,4
	push	eax
	push	_47
	call	_bbStringConcat
	add	esp,8
	push	eax
	call	_bbStringConcat
	add	esp,8
	push	eax
	call	_bbStringConcat
	add	esp,8
	push	eax
	call	_brl_blitz_DebugLog
	add	esp,4
	mov	eax,ebx
	imul	eax,3
	push	eax
	push	_387
	call	_bbArrayNew1D
	add	esp,8
	mov	ebx,eax
	mov	eax,esi
	imul	eax,3
	push	eax
	push	_389
	call	_bbArrayNew1D
	add	esp,8
	mov	esi,eax
	mov	eax,dword [ebp+8]
	mov	eax,dword [eax+40]
	push	3
	push	esi
	push	eax
	mov	eax,dword [eax]
	call	dword [eax+116]
	add	esp,12
	mov	eax,dword [ebp+8]
	mov	eax,dword [eax+40]
	push	ebx
	push	eax
	mov	eax,dword [eax]
	call	dword [eax+76]
	add	esp,8
	mov	eax,dword [ebp-4]
	push	ebx
	push	esi
	push	edi
	push	eax
	mov	eax,dword [eax]
	call	dword [eax+52]
	add	esp,16
_44:
	add	edi,1
_380:
	cmp	edi,dword [ebp-8]
	jle	_46
_45:
_376:
_39:
	mov	eax,dword [ebp-20]
	push	eax
	mov	eax,dword [eax]
	call	dword [eax+48]
	add	esp,4
	cmp	eax,0
	jne	_41
_40:
_36:
	add	dword [ebp-12],1
_369:
	mov	eax,dword [ebp-24]
	cmp	dword [ebp-12],eax
	jle	_38
_37:
	mov	eax,dword [ebp+8]
	mov	eax,dword [eax+40]
	push	eax
	mov	eax,dword [eax]
	call	dword [eax+60]
	add	esp,4
	mov	eax,0
	jmp	_219
_219:
	pop	edi
	pop	esi
	pop	ebx
	mov	esp,ebp
	pop	ebp
	ret
__c3d_calb3d_CB3DModel_Destroy:
	push	ebp
	mov	ebp,esp
	sub	esp,8
	push	ebx
	push	esi
	push	edi
	mov	eax,dword [ebp+8]
	mov	esi,dword [eax+24]
	push	esi
	mov	eax,dword [esi]
	call	dword [eax+140]
	add	esp,4
	mov	ebx,eax
	jmp	_49
_51:
	push	_c3d_calb3d_CB3DMesh
	push	ebx
	mov	eax,dword [ebx]
	call	dword [eax+52]
	add	esp,4
	push	eax
	call	_bbObjectDowncast
	add	esp,8
	cmp	eax,_bbNullObject
	je	_49
	cmp	dword [eax+12],_bbNullObject
	je	_401
	push	dword [eax+12]
	call	_sidesign_minib3d_FreeEntity
	add	esp,4
_401:
_49:
	push	ebx
	mov	eax,dword [ebx]
	call	dword [eax+48]
	add	esp,4
	cmp	eax,0
	jne	_51
_50:
	mov	eax,dword [ebp+8]
	mov	eax,dword [eax+28]
	mov	dword [ebp-4],eax
	mov	eax,dword [ebp-4]
	push	eax
	mov	eax,dword [eax]
	call	dword [eax+140]
	add	esp,4
	mov	dword [ebp-8],eax
	jmp	_52
_54:
	mov	eax,dword [ebp-8]
	push	_c3d_calb3d_CB3DMaterial
	push	eax
	mov	eax,dword [eax]
	call	dword [eax+52]
	add	esp,4
	push	eax
	call	_bbObjectDowncast
	add	esp,8
	mov	edi,eax
	cmp	edi,_bbNullObject
	je	_52
	mov	esi,dword [edi+40]
	mov	eax,esi
	push	eax
	mov	eax,dword [eax]
	call	dword [eax+140]
	add	esp,4
	mov	ebx,eax
	jmp	_55
_57:
	mov	eax,ebx
	push	_c3d_calb3d_CB3DTexture
	push	eax
	mov	eax,dword [eax]
	call	dword [eax+52]
	add	esp,4
	push	eax
	call	_bbObjectDowncast
	add	esp,8
	cmp	eax,_bbNullObject
	je	_55
	push	dword [eax+8]
	call	_sidesign_minib3d_FreeTexture
	add	esp,4
_55:
	mov	eax,ebx
	push	eax
	mov	eax,dword [eax]
	call	dword [eax+48]
	add	esp,4
	cmp	eax,0
	jne	_57
_56:
	push	dword [edi+8]
	call	_sidesign_minib3d_FreeBrush
	add	esp,4
_52:
	mov	eax,dword [ebp-8]
	push	eax
	mov	eax,dword [eax]
	call	dword [eax+48]
	add	esp,4
	cmp	eax,0
	jne	_54
_53:
	mov	eax,dword [ebp+8]
	push	dword [eax+24]
	call	_brl_linkedlist_ClearList
	add	esp,4
	mov	eax,dword [ebp+8]
	push	dword [eax+28]
	call	_brl_linkedlist_ClearList
	add	esp,4
	mov	eax,dword [ebp+8]
	push	dword [eax+32]
	call	_brl_linkedlist_ClearList
	add	esp,4
	mov	eax,dword [ebp+8]
	push	dword [eax+36]
	call	_brl_linkedlist_ClearList
	add	esp,4
	mov	eax,0
	jmp	_222
_222:
	pop	edi
	pop	esi
	pop	ebx
	mov	esp,ebp
	pop	ebp
	ret
__c3d_calb3d_CB3DModel_Update:
	push	ebp
	mov	ebp,esp
	sub	esp,36
	push	ebx
	push	esi
	push	edi
	fld	dword [ebp+12]
	mov	eax,dword [ebp+8]
	cmp	dword [eax+16],_bbNullObject
	jne	_414
	fstp	st0
	mov	eax,-1
	jmp	_226
_414:
	mov	eax,dword [ebp+8]
	mov	eax,dword [eax+16]
	sub	esp,4
	fstp	dword [esp]
	push	eax
	mov	eax,dword [eax]
	call	dword [eax+124]
	add	esp,8
	mov	eax,dword [ebp+8]
	mov	eax,dword [eax+40]
	push	eax
	mov	eax,dword [eax]
	call	dword [eax+56]
	add	esp,4
	mov	eax,dword [ebp+8]
	mov	eax,dword [eax+40]
	push	eax
	mov	eax,dword [eax]
	call	dword [eax+88]
	add	esp,4
	mov	dword [ebp-32],0
	mov	dword [ebp-36],eax
	jmp	_420
_60:
	mov	eax,dword [ebp+8]
	mov	eax,dword [eax+24]
	mov	dword [ebp-24],eax
	mov	eax,dword [ebp-24]
	push	eax
	mov	eax,dword [eax]
	call	dword [eax+140]
	add	esp,4
	mov	dword [ebp-28],eax
	jmp	_61
_63:
	mov	eax,dword [ebp-28]
	push	_c3d_calb3d_CB3DMesh
	push	eax
	mov	eax,dword [eax]
	call	dword [eax+52]
	add	esp,4
	push	eax
	call	_bbObjectDowncast
	add	esp,8
	mov	dword [ebp-16],eax
	cmp	dword [ebp-16],_bbNullObject
	je	_61
	mov	edx,dword [ebp-16]
	mov	eax,dword [ebp-32]
	cmp	dword [edx+8],eax
	jne	_428
	mov	eax,dword [ebp+8]
	mov	eax,dword [eax+40]
	push	dword [ebp-32]
	push	eax
	mov	eax,dword [eax]
	call	dword [eax+104]
	add	esp,8
	mov	dword [ebp-12],0
	sub	eax,1
	mov	dword [ebp-20],eax
	jmp	_432
_66:
	mov	eax,dword [ebp+8]
	mov	edx,dword [eax+40]
	push	dword [ebp-12]
	mov	eax,dword [ebp-16]
	push	dword [eax+8]
	push	edx
	mov	eax,dword [edx]
	call	dword [eax+136]
	add	esp,12
	mov	eax,dword [ebp+8]
	mov	eax,dword [eax+40]
	push	eax
	mov	eax,dword [eax]
	call	dword [eax+112]
	add	esp,4
	mov	ebx,eax
	mov	eax,ebx
	imul	eax,3
	push	eax
	push	_437
	call	_bbArrayNew1D
	add	esp,8
	mov	dword [ebp-8],eax
	mov	eax,ebx
	imul	eax,3
	push	eax
	push	_439
	call	_bbArrayNew1D
	add	esp,8
	mov	dword [ebp-4],eax
	shl	ebx,1
	push	ebx
	push	_441
	call	_bbArrayNew1D
	add	esp,8
	mov	edi,eax
	mov	eax,dword [ebp+8]
	mov	eax,dword [eax+40]
	push	3
	push	dword [ebp-8]
	push	eax
	mov	eax,dword [eax]
	call	dword [eax+116]
	add	esp,12
	mov	eax,dword [ebp+8]
	mov	eax,dword [eax+40]
	push	3
	push	dword [ebp-4]
	push	eax
	mov	eax,dword [eax]
	call	dword [eax+92]
	add	esp,12
	mov	eax,dword [ebp+8]
	mov	edx,dword [eax+12]
	mov	eax,dword [ebp-16]
	push	dword [eax+8]
	push	edx
	mov	eax,dword [edx]
	call	dword [eax+172]
	add	esp,8
	push	dword [ebp-12]
	push	eax
	mov	eax,dword [eax]
	call	dword [eax+52]
	add	esp,8
	mov	ebx,eax
	mov	eax,dword [ebp+8]
	mov	esi,dword [eax+40]
	mov	eax,ebx
	push	2
	push	edi
	push	eax
	mov	eax,dword [eax]
	call	dword [eax+48]
	add	esp,4
	push	eax
	push	esi
	mov	eax,dword [esi]
	call	dword [eax+108]
	add	esp,16
	mov	esi,dword [ebp+8]
	mov	eax,ebx
	push	eax
	mov	eax,dword [eax]
	call	dword [eax+48]
	add	esp,4
	push	eax
	push	esi
	mov	eax,dword [esi]
	call	dword [eax+80]
	add	esp,8
	cmp	eax,_bbNullObject
	je	_453
	push	dword [eax+8]
	mov	eax,dword [ebp-16]
	push	dword [eax+12]
	call	_sidesign_minib3d_PaintEntity
	add	esp,8
_453:
	mov	eax,dword [ebp-16]
	push	edi
	push	dword [ebp-4]
	push	dword [ebp-8]
	push	dword [ebp-12]
	push	eax
	mov	eax,dword [eax]
	call	dword [eax+56]
	add	esp,20
_64:
	add	dword [ebp-12],1
_432:
	mov	eax,dword [ebp-20]
	cmp	dword [ebp-12],eax
	jle	_66
_65:
_428:
_61:
	mov	eax,dword [ebp-28]
	push	eax
	mov	eax,dword [eax]
	call	dword [eax+48]
	add	esp,4
	cmp	eax,0
	jne	_63
_62:
_58:
	add	dword [ebp-32],1
_420:
	mov	eax,dword [ebp-36]
	cmp	dword [ebp-32],eax
	jle	_60
_59:
	mov	eax,dword [ebp+8]
	mov	eax,dword [eax+40]
	push	eax
	mov	eax,dword [eax]
	call	dword [eax+60]
	add	esp,4
	mov	eax,0
	jmp	_226
_226:
	pop	edi
	pop	esi
	pop	ebx
	mov	esp,ebp
	pop	ebp
	ret
__c3d_calb3d_CB3DMesh_New:
	push	ebp
	mov	ebp,esp
	push	ebx
	mov	ebx,dword [ebp+8]
	push	ebx
	call	_bbObjectCtor
	add	esp,4
	mov	dword [ebx],_c3d_calb3d_CB3DMesh
	mov	dword [ebx+8],0
	mov	dword [ebx+12],_bbNullObject
	mov	dword [ebx+16],_bbNullObject
	mov	dword [ebx+20],_bbEmptyArray
	mov	dword [ebx+24],_bbEmptyString
	mov	dword [ebx+28],_bbEmptyString
	mov	byte [ebx+32],0
	mov	dword [ebx+36],_bbNullObject
	mov	eax,0
	jmp	_229
_229:
	pop	ebx
	mov	esp,ebp
	pop	ebp
	ret
__c3d_calb3d_CB3DMesh_PaintMaterial:
	push	ebp
	mov	ebp,esp
	mov	eax,dword [ebp+8]
	mov	ecx,dword [ebp+12]
	mov	edx,dword [ebp+16]
	mov	eax,dword [eax+20]
	mov	eax,dword [eax+ecx*4+24]
	push	edx
	push	eax
	mov	eax,dword [eax]
	call	dword [eax+52]
	add	esp,8
	mov	eax,0
	jmp	_234
_234:
	mov	esp,ebp
	pop	ebp
	ret
__c3d_calb3d_CB3DMesh_Build:
	push	ebp
	mov	ebp,esp
	sub	esp,4
	push	ebx
	push	esi
	push	edi
	mov	esi,dword [ebp+16]
	mov	eax,dword [ebp+8]
	cmp	dword [eax+16],_bbNullObject
	jne	_457
	push	_67
	call	_brl_blitz_DebugLog
	add	esp,4
	mov	byte [ebp-4],0
	jmp	_240
_457:
	mov	eax,dword [ebp+8]
	cmp	dword [eax+12],_bbNullObject
	jne	_458
	mov	eax,dword [ebp+8]
	mov	eax,dword [eax+36]
	push	dword [eax+20]
	call	dword [_sidesign_minib3d_TMesh+400]
	add	esp,4
	mov	edx,dword [ebp+8]
	mov	dword [edx+12],eax
_458:
	mov	eax,dword [ebp+8]
	mov	eax,dword [eax+20]
	mov	eax,dword [eax+20]
	sub	eax,1
	cmp	dword [ebp+12],eax
	jle	_459
	mov	eax,dword [ebp+8]
	mov	eax,dword [eax+20]
	mov	eax,dword [eax+20]
	add	eax,1
	push	eax
	push	0
	mov	eax,dword [ebp+8]
	push	dword [eax+20]
	push	_460
	call	_bbArraySlice
	add	esp,16
	mov	edx,dword [ebp+8]
	mov	dword [edx+20],eax
	mov	eax,dword [ebp+8]
	mov	edx,dword [eax+12]
	mov	eax,dword [ebp+8]
	mov	ebx,dword [eax+20]
	push	_bbNullObject
	push	edx
	mov	eax,dword [edx]
	call	dword [eax+464]
	add	esp,8
	mov	edx,dword [ebp+12]
	mov	dword [ebx+edx*4+24],eax
	push	dword [ebp+12]
	call	_bbStringFromInt
	add	esp,4
	push	eax
	push	_68
	call	_bbStringConcat
	add	esp,8
	push	eax
	call	_brl_blitz_DebugLog
	add	esp,4
	jmp	_462
_459:
	mov	eax,dword [ebp+8]
	mov	edx,dword [eax+20]
	mov	eax,dword [ebp+12]
	mov	eax,dword [edx+eax*4+24]
	push	1
	push	1
	push	eax
	mov	eax,dword [eax]
	call	dword [eax+56]
	add	esp,12
	push	dword [ebp+12]
	call	_bbStringFromInt
	add	esp,4
	push	eax
	push	_69
	call	_bbStringConcat
	add	esp,8
	push	eax
	call	_brl_blitz_DebugLog
	add	esp,4
_462:
	mov	ebx,0
	mov	eax,dword [esi+20]
	sub	eax,1
	mov	edi,eax
	jmp	_465
_72:
	mov	eax,dword [ebp+8]
	mov	edx,dword [eax+20]
	mov	eax,dword [ebp+12]
	mov	eax,dword [edx+eax*4+24]
	push	0
	push	0
	push	0
	mov	edx,ebx
	add	edx,2
	push	dword [esi+edx*4+24]
	mov	edx,ebx
	add	edx,1
	push	dword [esi+edx*4+24]
	push	dword [esi+ebx*4+24]
	push	eax
	mov	eax,dword [eax]
	call	dword [eax+60]
	add	esp,28
_70:
	add	ebx,3
_465:
	cmp	ebx,edi
	jle	_72
_71:
	mov	esi,0
	mov	eax,dword [ebp+20]
	mov	ebx,dword [eax+20]
	sub	ebx,1
	jmp	_469
_75:
	mov	eax,dword [ebp+8]
	mov	edx,dword [eax+20]
	mov	eax,dword [ebp+12]
	mov	edx,dword [edx+eax*4+24]
	mov	ecx,esi
	add	ecx,2
	mov	eax,dword [ebp+20]
	movzx	eax,word [eax+ecx*2+24]
	mov	eax,eax
	push	eax
	mov	ecx,esi
	add	ecx,1
	mov	eax,dword [ebp+20]
	movzx	eax,word [eax+ecx*2+24]
	mov	eax,eax
	push	eax
	mov	eax,dword [ebp+20]
	movzx	eax,word [eax+esi*2+24]
	mov	eax,eax
	push	eax
	push	edx
	mov	eax,dword [edx]
	call	dword [eax+64]
	add	esp,16
_73:
	add	esi,3
_469:
	cmp	esi,ebx
	jle	_75
_74:
	mov	eax,dword [ebp+8]
	mov	edx,dword [eax+20]
	mov	eax,dword [ebp+12]
	mov	eax,dword [edx+eax*4+24]
	push	eax
	mov	eax,dword [eax]
	call	dword [eax+148]
	add	esp,4
	mov	eax,dword [ebp+8]
	mov	byte [eax+32],1
	mov	byte [ebp-4],1
	jmp	_240
_240:
	movzx	eax,byte [ebp-4]
	pop	edi
	pop	esi
	pop	ebx
	mov	esp,ebp
	pop	ebp
	ret
__c3d_calb3d_CB3DMesh_Update:
	push	ebp
	mov	ebp,esp
	push	ebx
	push	esi
	push	edi
	mov	ebx,dword [ebp+8]
	mov	ecx,dword [ebp+12]
	mov	edx,dword [ebp+16]
	mov	eax,dword [ebp+20]
	mov	edi,dword [ebp+24]
	mov	esi,dword [ebx+20]
	mov	esi,dword [esi+ecx*4+24]
	mov	dword [esi+20],edx
	mov	edx,dword [ebx+20]
	mov	edx,dword [edx+ecx*4+24]
	mov	dword [edx+32],eax
	mov	eax,dword [ebx+20]
	mov	eax,dword [eax+ecx*4+24]
	mov	dword [eax+24],edi
	mov	eax,dword [ebx+20]
	mov	eax,dword [eax+ecx*4+24]
	mov	edx,dword [ebx+20]
	mov	edx,dword [edx+ecx*4+24]
	mov	edx,dword [edx+96]
	or	edx,7
	mov	dword [eax+96],edx
	mov	eax,0
	jmp	_247
_247:
	pop	edi
	pop	esi
	pop	ebx
	mov	esp,ebp
	pop	ebp
	ret
__c3d_calb3d_CB3DMaterial_New:
	push	ebp
	mov	ebp,esp
	push	ebx
	mov	ebx,dword [ebp+8]
	push	ebx
	call	_bbObjectCtor
	add	esp,4
	mov	dword [ebx],_c3d_calb3d_CB3DMaterial
	mov	dword [ebx+8],_bbNullObject
	mov	dword [ebx+12],_bbNullObject
	mov	dword [ebx+16],0
	push	3
	push	_473
	call	_bbArrayNew1D
	add	esp,8
	mov	dword [ebx+20],eax
	mov	dword [ebx+24],0
	mov	byte [ebx+28],0
	mov	dword [ebx+32],_bbEmptyString
	mov	dword [ebx+36],_bbEmptyString
	mov	dword [ebx+40],_bbNullObject
	push	1132396544
	push	1132396544
	push	1132396544
	call	dword [_sidesign_minib3d_TBrush+56]
	add	esp,12
	mov	dword [ebx+8],eax
	mov	eax,dword [ebx+20]
	mov	dword [eax+24],255
	mov	eax,dword [ebx+20]
	mov	dword [eax+4+24],255
	mov	eax,dword [ebx+20]
	mov	dword [eax+8+24],255
	push	_brl_linkedlist_TList
	call	_bbObjectNew
	add	esp,4
	mov	dword [ebx+40],eax
	mov	dword [ebx+24],0
	mov	dword [ebx+36],_76
	mov	eax,0
	jmp	_250
_250:
	pop	ebx
	mov	esp,ebp
	pop	ebp
	ret
__c3d_calb3d_CB3DMaterial_AddMap:
	push	ebp
	mov	ebp,esp
	push	ebx
	push	esi
	push	edi
	mov	esi,dword [ebp+8]
	mov	ebx,dword [ebp+12]
	mov	edi,dword [ebp+16]
	mov	eax,dword [esi+8]
	push	edi
	push	0
	push	dword [ebx+8]
	push	eax
	mov	eax,dword [eax]
	call	dword [eax+76]
	add	esp,16
	mov	dword [ebx+20],edi
	mov	dword [ebx+28],esi
	mov	eax,dword [esi+40]
	push	ebx
	push	eax
	mov	eax,dword [eax]
	call	dword [eax+68]
	add	esp,8
	mov	eax,0
	jmp	_255
_255:
	pop	edi
	pop	esi
	pop	ebx
	mov	esp,ebp
	pop	ebp
	ret
__c3d_calb3d_CB3DTexture_New:
	push	ebp
	mov	ebp,esp
	push	ebx
	mov	ebx,dword [ebp+8]
	push	ebx
	call	_bbObjectCtor
	add	esp,4
	mov	dword [ebx],_c3d_calb3d_CB3DTexture
	mov	dword [ebx+8],_bbNullObject
	mov	dword [ebx+12],_bbEmptyString
	mov	dword [ebx+16],2
	mov	dword [ebx+20],0
	mov	dword [ebx+24],0
	mov	dword [ebx+28],_bbNullObject
	mov	eax,0
	jmp	_258
_258:
	pop	ebx
	mov	esp,ebp
	pop	ebp
	ret
__c3d_calb3d_CB3DAnimation_New:
	push	ebp
	mov	ebp,esp
	push	ebx
	mov	ebx,dword [ebp+8]
	push	ebx
	call	_bbObjectCtor
	add	esp,4
	mov	dword [ebx],_c3d_calb3d_CB3DAnimation
	mov	dword [ebx+8],_bbEmptyString
	mov	dword [ebx+12],_bbEmptyString
	mov	byte [ebx+16],0
	mov	dword [ebx+20],0
	mov	dword [ebx+24],_bbNullObject
	mov	dword [ebx+28],_bbNullObject
	mov	eax,0
	jmp	_261
_261:
	pop	ebx
	mov	esp,ebp
	pop	ebp
	ret
__c3d_calb3d_CB3DMAnimation_New:
	push	ebp
	mov	ebp,esp
	push	ebx
	mov	ebx,dword [ebp+8]
	push	ebx
	call	_bbObjectCtor
	add	esp,4
	mov	dword [ebx],_c3d_calb3d_CB3DMAnimation
	mov	dword [ebx+8],_bbEmptyString
	mov	dword [ebx+12],_bbEmptyString
	mov	byte [ebx+16],0
	mov	dword [ebx+20],0
	mov	dword [ebx+24],_bbNullObject
	mov	dword [ebx+28],_bbNullObject
	mov	eax,0
	jmp	_264
_264:
	pop	ebx
	mov	esp,ebp
	pop	ebp
	ret
	section	"data" data writeable align 8
	align	4
_266:
	dd	0
_78:
	db	"CB3DModel",0
_79:
	db	"Skele",0
_80:
	db	":CalCoreSkeleton",0
_81:
	db	"CoreModel",0
_82:
	db	":CalCoreModel",0
_83:
	db	"CModel",0
_84:
	db	":CalModel",0
_85:
	db	"B3dModel",0
_86:
	db	":TMesh",0
_87:
	db	"Meshes",0
_88:
	db	":TList",0
_89:
	db	"Materials",0
_90:
	db	"Anims",0
_91:
	db	"MAnims",0
_92:
	db	"cal_renderer",0
_93:
	db	":CalRenderer",0
_94:
	db	"isloaded",0
_95:
	db	"b",0
_96:
	db	"rebuild",0
_97:
	db	"SkeletonLoaded",0
_98:
	db	"isanim",0
_99:
	db	"SkeleFile",0
_100:
	db	"$",0
_101:
	db	"SkeleName",0
_102:
	db	"New",0
_103:
	db	"()i",0
_104:
	db	"SetSkeleton",0
_105:
	db	"(:CalCoreSkeleton)i",0
_106:
	db	"Animate",0
_107:
	db	"(i)i",0
_108:
	db	"StopAnimation",0
_109:
	db	"StopMorphAnimation",0
_110:
	db	"AnimateMorph",0
_111:
	db	"AddAnim",0
_112:
	db	"(:CalCoreAnimation):CB3DAnimation",0
_113:
	db	"AddMorphAnim",0
_114:
	db	"(:CalCoreAnimatedMorph):CB3DMAnimation",0
_115:
	db	"AddMaterial",0
_116:
	db	"(:CalCoreMaterial,i,$):CB3DMaterial",0
_117:
	db	"GetMaterial",0
_118:
	db	"(i):CB3DMaterial",0
_119:
	db	"AddMesh",0
_120:
	db	"(:CalCoreMesh):CB3DMesh",0
_121:
	db	"Build",0
_122:
	db	"Destroy",0
_123:
	db	"Update",0
_124:
	db	"(f)i",0
	align	4
_77:
	dd	2
	dd	_78
	dd	3
	dd	_79
	dd	_80
	dd	8
	dd	3
	dd	_81
	dd	_82
	dd	12
	dd	3
	dd	_83
	dd	_84
	dd	16
	dd	3
	dd	_85
	dd	_86
	dd	20
	dd	3
	dd	_87
	dd	_88
	dd	24
	dd	3
	dd	_89
	dd	_88
	dd	28
	dd	3
	dd	_90
	dd	_88
	dd	32
	dd	3
	dd	_91
	dd	_88
	dd	36
	dd	3
	dd	_92
	dd	_93
	dd	40
	dd	3
	dd	_94
	dd	_95
	dd	44
	dd	3
	dd	_96
	dd	_95
	dd	45
	dd	3
	dd	_97
	dd	_95
	dd	46
	dd	3
	dd	_98
	dd	_95
	dd	47
	dd	3
	dd	_99
	dd	_100
	dd	48
	dd	3
	dd	_101
	dd	_100
	dd	52
	dd	6
	dd	_102
	dd	_103
	dd	16
	dd	6
	dd	_104
	dd	_105
	dd	48
	dd	6
	dd	_106
	dd	_107
	dd	52
	dd	6
	dd	_108
	dd	_107
	dd	56
	dd	6
	dd	_109
	dd	_107
	dd	60
	dd	6
	dd	_110
	dd	_107
	dd	64
	dd	6
	dd	_111
	dd	_112
	dd	68
	dd	6
	dd	_113
	dd	_114
	dd	72
	dd	6
	dd	_115
	dd	_116
	dd	76
	dd	6
	dd	_117
	dd	_118
	dd	80
	dd	6
	dd	_119
	dd	_120
	dd	84
	dd	6
	dd	_121
	dd	_103
	dd	88
	dd	6
	dd	_122
	dd	_103
	dd	92
	dd	6
	dd	_123
	dd	_124
	dd	96
	dd	0
	align	4
_c3d_calb3d_CB3DModel:
	dd	_bbObjectClass
	dd	_bbObjectFree
	dd	_77
	dd	56
	dd	__c3d_calb3d_CB3DModel_New
	dd	_bbObjectDtor
	dd	_bbObjectToString
	dd	_bbObjectCompare
	dd	_bbObjectSendMessage
	dd	_bbObjectReserved
	dd	_bbObjectReserved
	dd	_bbObjectReserved
	dd	__c3d_calb3d_CB3DModel_SetSkeleton
	dd	__c3d_calb3d_CB3DModel_Animate
	dd	__c3d_calb3d_CB3DModel_StopAnimation
	dd	__c3d_calb3d_CB3DModel_StopMorphAnimation
	dd	__c3d_calb3d_CB3DModel_AnimateMorph
	dd	__c3d_calb3d_CB3DModel_AddAnim
	dd	__c3d_calb3d_CB3DModel_AddMorphAnim
	dd	__c3d_calb3d_CB3DModel_AddMaterial
	dd	__c3d_calb3d_CB3DModel_GetMaterial
	dd	__c3d_calb3d_CB3DModel_AddMesh
	dd	__c3d_calb3d_CB3DModel_Build
	dd	__c3d_calb3d_CB3DModel_Destroy
	dd	__c3d_calb3d_CB3DModel_Update
_126:
	db	"CB3DMesh",0
_127:
	db	"MeshID",0
_128:
	db	"i",0
_129:
	db	"B3dMesh",0
_130:
	db	"CMesh",0
_131:
	db	":CalCoreMesh",0
_132:
	db	"surf",0
_133:
	db	"[]:TSurface",0
_134:
	db	"filename",0
_135:
	db	"name",0
_136:
	db	"parent",0
_137:
	db	":CB3DModel",0
_138:
	db	"PaintMaterial",0
_139:
	db	"(i,:TBrush)i",0
_140:
	db	"(i,[]f,[]s)b",0
_141:
	db	"(i,[]f,[]f,[]f)i",0
	align	4
_125:
	dd	2
	dd	_126
	dd	3
	dd	_127
	dd	_128
	dd	8
	dd	3
	dd	_129
	dd	_86
	dd	12
	dd	3
	dd	_130
	dd	_131
	dd	16
	dd	3
	dd	_132
	dd	_133
	dd	20
	dd	3
	dd	_134
	dd	_100
	dd	24
	dd	3
	dd	_135
	dd	_100
	dd	28
	dd	3
	dd	_94
	dd	_95
	dd	32
	dd	3
	dd	_136
	dd	_137
	dd	36
	dd	6
	dd	_102
	dd	_103
	dd	16
	dd	6
	dd	_138
	dd	_139
	dd	48
	dd	6
	dd	_121
	dd	_140
	dd	52
	dd	6
	dd	_123
	dd	_141
	dd	56
	dd	0
	align	4
_c3d_calb3d_CB3DMesh:
	dd	_bbObjectClass
	dd	_bbObjectFree
	dd	_125
	dd	40
	dd	__c3d_calb3d_CB3DMesh_New
	dd	_bbObjectDtor
	dd	_bbObjectToString
	dd	_bbObjectCompare
	dd	_bbObjectSendMessage
	dd	_bbObjectReserved
	dd	_bbObjectReserved
	dd	_bbObjectReserved
	dd	__c3d_calb3d_CB3DMesh_PaintMaterial
	dd	__c3d_calb3d_CB3DMesh_Build
	dd	__c3d_calb3d_CB3DMesh_Update
_143:
	db	"CB3DMaterial",0
_144:
	db	"B3dBrush",0
_145:
	db	":TBrush",0
_146:
	db	"Cmat",0
_147:
	db	":CalCoreMaterial",0
_148:
	db	"flags",0
_149:
	db	"diffuse",0
_150:
	db	"[]i",0
_151:
	db	"matid",0
_152:
	db	"maps",0
_153:
	db	"AddMap",0
_154:
	db	"(:CB3DTexture,i)i",0
	align	4
_142:
	dd	2
	dd	_143
	dd	3
	dd	_144
	dd	_145
	dd	8
	dd	3
	dd	_146
	dd	_147
	dd	12
	dd	3
	dd	_148
	dd	_128
	dd	16
	dd	3
	dd	_149
	dd	_150
	dd	20
	dd	3
	dd	_151
	dd	_128
	dd	24
	dd	3
	dd	_94
	dd	_95
	dd	28
	dd	3
	dd	_134
	dd	_100
	dd	32
	dd	3
	dd	_135
	dd	_100
	dd	36
	dd	3
	dd	_152
	dd	_88
	dd	40
	dd	6
	dd	_102
	dd	_103
	dd	16
	dd	6
	dd	_153
	dd	_154
	dd	48
	dd	0
	align	4
_c3d_calb3d_CB3DMaterial:
	dd	_bbObjectClass
	dd	_bbObjectFree
	dd	_142
	dd	44
	dd	__c3d_calb3d_CB3DMaterial_New
	dd	_bbObjectDtor
	dd	_bbObjectToString
	dd	_bbObjectCompare
	dd	_bbObjectSendMessage
	dd	_bbObjectReserved
	dd	_bbObjectReserved
	dd	_bbObjectReserved
	dd	__c3d_calb3d_CB3DMaterial_AddMap
_156:
	db	"CB3DTexture",0
_157:
	db	"tex",0
_158:
	db	":TTexture",0
_159:
	db	"blend",0
_160:
	db	"id",0
_161:
	db	"uvset",0
_162:
	db	"parentmat",0
_163:
	db	":CB3DMaterial",0
	align	4
_155:
	dd	2
	dd	_156
	dd	3
	dd	_157
	dd	_158
	dd	8
	dd	3
	dd	_135
	dd	_100
	dd	12
	dd	3
	dd	_159
	dd	_128
	dd	16
	dd	3
	dd	_160
	dd	_128
	dd	20
	dd	3
	dd	_161
	dd	_128
	dd	24
	dd	3
	dd	_162
	dd	_163
	dd	28
	dd	6
	dd	_102
	dd	_103
	dd	16
	dd	0
	align	4
_c3d_calb3d_CB3DTexture:
	dd	_bbObjectClass
	dd	_bbObjectFree
	dd	_155
	dd	32
	dd	__c3d_calb3d_CB3DTexture_New
	dd	_bbObjectDtor
	dd	_bbObjectToString
	dd	_bbObjectCompare
	dd	_bbObjectSendMessage
	dd	_bbObjectReserved
	dd	_bbObjectReserved
	dd	_bbObjectReserved
_165:
	db	"CB3DAnimation",0
_166:
	db	"canim",0
_167:
	db	":CalCoreAnimation",0
	align	4
_164:
	dd	2
	dd	_165
	dd	3
	dd	_134
	dd	_100
	dd	8
	dd	3
	dd	_135
	dd	_100
	dd	12
	dd	3
	dd	_94
	dd	_95
	dd	16
	dd	3
	dd	_160
	dd	_128
	dd	20
	dd	3
	dd	_166
	dd	_167
	dd	24
	dd	3
	dd	_136
	dd	_137
	dd	28
	dd	6
	dd	_102
	dd	_103
	dd	16
	dd	0
	align	4
_c3d_calb3d_CB3DAnimation:
	dd	_bbObjectClass
	dd	_bbObjectFree
	dd	_164
	dd	32
	dd	__c3d_calb3d_CB3DAnimation_New
	dd	_bbObjectDtor
	dd	_bbObjectToString
	dd	_bbObjectCompare
	dd	_bbObjectSendMessage
	dd	_bbObjectReserved
	dd	_bbObjectReserved
	dd	_bbObjectReserved
_169:
	db	"CB3DMAnimation",0
_170:
	db	":CalCoreAnimatedMorph",0
	align	4
_168:
	dd	2
	dd	_169
	dd	3
	dd	_134
	dd	_100
	dd	8
	dd	3
	dd	_135
	dd	_100
	dd	12
	dd	3
	dd	_94
	dd	_95
	dd	16
	dd	3
	dd	_160
	dd	_128
	dd	20
	dd	3
	dd	_166
	dd	_170
	dd	24
	dd	3
	dd	_136
	dd	_137
	dd	28
	dd	6
	dd	_102
	dd	_103
	dd	16
	dd	0
	align	4
_c3d_calb3d_CB3DMAnimation:
	dd	_bbObjectClass
	dd	_bbObjectFree
	dd	_168
	dd	32
	dd	__c3d_calb3d_CB3DMAnimation_New
	dd	_bbObjectDtor
	dd	_bbObjectToString
	dd	_bbObjectCompare
	dd	_bbObjectSendMessage
	dd	_bbObjectReserved
	dd	_bbObjectReserved
	dd	_bbObjectReserved
	align	4
_5:
	dd	_bbStringClass
	dd	2147483647
	dd	9
	dw	65,78,73,77,32,73,68,58,32
	align	4
_6:
	dd	_bbStringClass
	dd	2147483647
	dd	10
	dw	77,79,82,80,72,32,73,68,58,32
	align	4
_10:
	dd	_bbStringClass
	dd	2147483647
	dd	18
	dw	67,114,101,97,116,101,100,32,77,97,116,101,114,105,97,108
	dw	58,32
	align	4
_11:
	dd	_bbStringClass
	dd	2147483647
	dd	10
	dw	77,97,112,99,111,117,110,116,58,32
	align	4
_15:
	dd	_bbStringClass
	dd	2147483647
	dd	7
	dw	70,101,116,99,104,58,32
	align	4
_16:
	dd	_bbStringClass
	dd	2147483647
	dd	16
	dw	116,101,120,116,117,114,101,32,119,97,115,32,110,117,108,108
	align	4
_20:
	dd	_bbStringClass
	dd	2147483647
	dd	7
	dw	65,100,100,101,100,58,32
	align	4
_27:
	dd	_bbStringClass
	dd	2147483647
	dd	22
	dw	67,111,114,101,32,83,107,101,108,101,116,111,110,32,105,115
	dw	32,110,117,108,108,33
	align	4
_34:
	dd	_bbStringClass
	dd	2147483647
	dd	11
	dw	72,97,118,101,32,67,109,111,100,101,108
	align	4
_35:
	dd	_bbStringClass
	dd	2147483647
	dd	12
	dw	77,101,115,104,32,67,111,117,110,116,58,32
	align	4
_42:
	dd	_bbStringClass
	dd	2147483647
	dd	10
	dw	71,111,116,32,77,101,115,104,58,32
	align	4
_43:
	dd	_bbStringClass
	dd	2147483647
	dd	15
	dw	78,79,70,58,32,83,117,98,109,101,115,104,101,115,32
	align	4
_48:
	dd	_bbStringClass
	dd	2147483647
	dd	6
	dw	32,70,97,99,101,115
	align	4
_47:
	dd	_bbStringClass
	dd	2147483647
	dd	7
	dw	86,101,114,116,115,58,32
_387:
	db	"s",0
_389:
	db	"f",0
_437:
	db	"f",0
_439:
	db	"f",0
_441:
	db	"f",0
	align	4
_67:
	dd	_bbStringClass
	dd	2147483647
	dd	15
	dw	67,109,101,115,104,32,119,97,115,32,110,117,108,108,33
_460:
	db	":TSurface",0
	align	4
_68:
	dd	_bbStringClass
	dd	2147483647
	dd	7
	dw	66,117,105,108,100,58,32
	align	4
_69:
	dd	_bbStringClass
	dd	2147483647
	dd	9
	dw	82,101,66,117,105,108,100,58,32
_473:
	db	"i",0
	align	4
_76:
	dd	_bbStringClass
	dd	2147483647
	dd	5
	dw	98,108,97,110,107
